home *** CD-ROM | disk | FTP | other *** search
- ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
- ▒▒ ▒▒
- ▒▒ PICTOPS (PICture TO PostScript file) power conversion program ▒▒
- ▒▒ All Rights Reserved ▒▒
- ▒▒ Version 3.11 Revision 24/01/96 ▒▒
- ▒▒ Copyright (C) 1995-1996 by TerSoftWare DNP IHEP Russia ▒▒
- ▒▒ Created by Igor L. Vassiliev ▒▒
- ▒▒ Author may be reached as: ▒▒
- ▒▒ E-mail: vasiliev_i@mx.ihep.su ▒▒
- ▒▒ ╔═══════╗ ╔═══════╗ Fax: (007)(095)-230-2337 ▒▒
- ▒▒ ║ ║ ║ Department Of Neutrino Physics ▒▒
- ▒▒ ║ ║ ║ To: Igor L. Vassiliev ▒▒
- ▒▒ ║ ║ ╚═══════╗ Mail: P.O.Box 142284 Russia ▒▒
- ▒▒ ╠═══════╜ ║ Moscow region, Protvino ▒▒
- ▒▒ ║ ┌┐┌─ ║ Lesnoj boulvar 12-74 ▒▒
- ▒▒ ║ ─┼┘└─ ╚═══════╝ To: Igor L. Vassiliev ▒▒
- ▒▒ ▒▒
- ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
-
- *PURPOSE*
- To convert image files to compressed PostScript-2,1 file format
- (PostScript is a trademark of Adobe Systems, Incorporated.)
-
- *FEATURES*
- PICTOPS V3.11 is power conversion program to convert image files
- to COLOR, GRAY and B&W PostScript file format. The following the base
- of PostScript implementations are used.
- I) Involved PostScript compression.
- PICTOPS will compress (PostScript program will decompress) image data
- by CCITTFaxEncode, LZWEncode or RunLengthEncode and then by ASCIIHexEncode
- or ASCII85Encode filters. Also, it is possible to create BINARY PostScript
- file without ASCIIHex or ASCII85 encoders (PostScript file will be not
- ASCII-printable in this case). Output from PICTOPS may have much small
- size than standard PostScript outs from other programs with simple Level-1.
- In the most cases, PKZIP or ARJ cannot compress PostScript out from
- PICTOPS more than 5-20% !
- II) Involved PostScript colour implementations.
- Supported simple 5-operand form of the (gray)image and 7-operand form of
- colorimage. Also, for index modes, image dictionaries which are
- a more general means for specifying parameters to the image operator are used.
- The image operator has a 1-operand form in which the operand is an image
- dictionary. In case with image dictionary setcolorspace operator will be used
- and data into the PostScript file will be presented as color indexes with
- color palette.
- Image sample may consist of 1,4 or 8 bits per component (24 bits images,
- presented as RGB - 8 bits per component). Image source data may be provided by
- string,procedure or filter.
- *NOTE*
- If PostScript device HAVE NOT ANY IMPLEMENTATIONS OF LEVEL-2, then the program
- automatically will be running as PostScript LEVEL-1 !
-
- *REQUIREMENTS*
- Program requires an IBM PC/AT/fully compatible computer, MS-DOS 3.0 or greater
- and from 180 to 450 Kb of free conventional memory.
- Any Intel processor from i86(88).But 40MHz and better is recommended for speed.
- Program will running without any XMS/EMS.
-
- *USAGE*
- Usage: pictops [options] [d:path]image-file [[d:path][out-file.ps]]
-
- *IMPORT*
- BMP - MS-Windows 3.1 Bitmap Format. BMP is the native bitmap file
- format of the Microsoft Windows environment.
- Supported the all kind of this format (BI_RGB,BI_RLE4 & BI_RLE8)
- Except 24-bits files
- GIF - Graphics Interchange Format (tm)
- Supported GIF87a and GIF89a modifications
- ICO - MS-Windows Icon Format
- PCX - ZSoft Paint. Supported the all kind of this format
- Except 24-bits files
- PBM - Portable Bitmap
- PGM - Portable Greymap
- PPM - Portable Pixmap file format
- (Extended Portable Bitmap Utilities (PBMPLUS))
- RLE - The same that compressed BMP
- TGA - Truevision (Targa) File Format. TGA is the native file format
- of the Truevision Incorporated
- Supported types: 1,2,3,9,10,11
- *NOTE* Import file may have no extention. File type will be detected
- automatically.
-
- *EXPORT*
- Color,Gray or B&W compressed or not PostScript file within Level-1 and Level-2.
- *NOTE* If name PostScript file-out is not specified and /sXXXX option is
- absent,then the file type will be as PostScript with name [d:path]image-file.ps
-
- *OPTIONS*
- The all command options must be preceded either '-' or '/' character.
- The options are described as follows:
- /zFAX - Import image data will be encoded at first by means of
- PostScript FAX (Modified Huffman compression. Group 3,1-D) filter and
- then through PostScript ASCII85Encode filter, which will be extend
- binary data to ASCII printable chars as 4:5
- *NOTE* In most cases, effect from compression will be for mono
- image only !
- *NOTE* If width of image is too large, PostScript error message
- may be received: /rangecheck in --.filter_CCITTFaxDecode--
- /zLZW - Import image data will be encoded at first by means of
- PostScript LZW (Lempel-Ziv-Welch) filter and then
- through PostScript ASCII85Encode filter, which will be extend
- binary data to ASCII printable chars as 4:5
- /zRLE - Import image data will be encoded at first by means of
- PostScript RLE (Run-Length-Encode) filter and then
- through PostScript ASCII85Encode filter, which will be extend
- binary data to ASCII printable chars as 4:5
- /zWOC - Without PostScript compression (by default)
- Import image data will be encoded through ASCIIHexEncode
- filter e.g. each binary byte will be presented by two ASCII
- printable hex-digits. Extention is as 1:2
- /sPS - Set output as PostScript (by default)
- /sEPS - Set output as Encapsulated PostScript
- /sEPSI - Set output as Encapsulated PostScript Interchange (EPS with preview)
- *NOTE* Option /sEPSI is not available in version 3.xx
- /L2 - To force PostScript Level-2 only. Program will NOT detect in
- PostScript device whether there is Level-2 or not.
- /g - To force grayscale PostScript output (by default)
- /c - To force color PostScript output
- /i - Background inversion (if possible)
- /b - To force binary PostScript out. (ASCIIHexEncode or ASCII85Encode
- filters will be not implemented)
- *NOTE* Output PostScript file will be NOT ASCII printable !
- /A4 - To force PostScript out to scale to A4 format 210x279mm (Really is
- 210-2*18 & 279-2*25. 18mm from left&right and 25mm from up&down edges)
- Default is - default size of picture.
- *NOTE* Available with /sPS option only !
- *NOTE* If image size exceed size A4 either by width or by height or
- both, A4 format will be done automatically.
- /R - PostScript out will be 90-rotated (Landscape). Default is Portrait.
- *NOTE* Available with /sPS option only !
- *NOTE* If used together with /A4 options, so the rotate will be
- done at first then scale.
- /o - Overwrite PostScript output if it exists without prompt.
- /t - Show time of PostScript encoding
- /cr - Show compress ratio
- /nw - Warning messages turn off
- /n=x - Ico-Image number (May be from 1 to 7)
- /h,? - this Help
-
- *USAGE EXAMPLE*
- 1) D:\>pictops sample
- Image file 'sample' will be translated into the grayscale PostScript
- file 'sample.ps' with no PostScript compression, picture is centered,
- size default.
- (Equivalent is: D:\>pictops /zWOC /sPS /g sample sample.ps)
- 2) D:\>pictops /zRLE /R /A4 /c /b d:\tmp1\sample d:\tmp2\*
- Image file 'd:\tmp1\sample' will be translated into the binary, color
- PostScript file 'd:\tmp2\sample.ps' with PostScript RLE compression,
- picture 90-rotated and scaled to A4.
- 3) D:\>pictops /L2 /sEPS d:\tmp1\sample.pcx
- Image file 'd:\tmp1\sample.pcx' will be translated into the grayscale
- Encapsulated PostScript file 'd:\tmp1\sample.eps' without PostScript
- compression, with Level-2 codes only, picture is centered, size default.
-
- *RECOMENDATIONS TO USE*
- Although PICTOPS have enough big collection of warning-messages about
- suspicion in corrupted image files, nevertheless it is recomended before to run
- output file on the PostScript printer, BE SURE that your PostScript file have
- valid format. For example, it may be done by GS.EXE or by any other viewer.
-
- *NOTE*
- Ghostscript Version 54.0 Rev 2.6.1. 05/28/93 (may be and other versions)
- has some errors in PostScript Filters. Some detected errors:
- ╔═══════════════╦════════╦════════════════════════════════════════════════════╗
- ║ Filter name ║ Errors ║ Description ║
- ╠═══════════════╬════════╬════════════════════════════════════════════════════╣
- ║ ║ ║ Sometimes it don't read terminator sign '>' after ║
- ║ASCIIHexDecode ║ YES ║ data. Without '>' always is okay. ║
- ║ ║ ║ (PICTOPS don't write this sign) ║
- ╟───────────────╫────────╫────────────────────────────────────────────────────╢
- ║ASCII85Decode ║ NO ║ No errors detected ║
- ╫───────────────╫────────╫────────────────────────────────────────────────────╢
- ║CCITTFaxDecode ║ NO ║ No errors detected (Group 3,1-D) ║
- ╟───────────────╫────────╫────────────────────────────────────────────────────╢
- ║ ║ ║ Sometimes, data from file are not reading to end ║
- ║LZWDecode ║ YES ║ calling error: /undefined in ABC... ║
- ║ ║ ║ Where ABC... are data from PS-file. More often this║
- ║ ║ ║ take place upon monotonous and continuous images. ║
- ╟───────────────╫────────╫────────────────────────────────────────────────────╢
- ║RunLengthDecode║ NO ║ No errors detected ║
- ╚═══════════════╩════════╩════════════════════════════════════════════════════╝
- Your action in error cases:
- 1) EITHER
- Remove comment (percent sign) in the line:
- %/Check_Filter false def
- In this case PostScript-run will be with no Filters.
- (File must be done without /b and /L2 options, of course !)
- OR
- 2) Do make run PICTOPS with other filter
-
- *REGISTRATION*
- PICTOPS is inexpensive shareware. If you find that PICTOPS is useful and
- continue using it after a trial period of 20 days, you are encouraged to pay
- a small registration fee. When you register, you will receive the last version
- of PICTOPS and your registration number. Registration entitles you continue
- using the current version and all future versions. The registration number
- will remove any limitation functions in the unregistered version of the
- current and the future releases.
- To register your copy of PICTOPS, please, send me your request to:
- E-mail: vasiliev_i@mx.ihep.su
- Unregistered version has ONE limitation - the maximum resolution of an input
- image-file is 640x480. The limitation is removed in the registered version.
-
- ╔═════════════════════════════════════════════════════════════════════════════╗
- ║ *WARNING* ║
- ║ YOU ARE USING PICTOPS AT YOUR OWN RISK ! THE AUTHOR (Igor L. Vassiliev) ║
- ║ IS NOT RESPONSIBLE FOR ANY DAMAGE CAUSED BY THE USE OF PICTOPS OR BY THE ║
- ║ INABILITY TO USE PICTOPS. IF YOU ARE NOT SURE ABOUT THIS, OR IF YOU DON'T ║
- ║ ACCEPT THIS, THEN DO NOT USE PICTOPS ! ║
- ╚═════════════════════════════════════════════════════════════════════════════╝
-